package com.joysuch.wwyt.mh.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.joysuch.wwyt.mh.entity.MhAlarmRecord;
import com.joysuch.wwyt.mh.mapper.MhAlarmRecordMapper;
import com.joysuch.wwyt.mh.service.MhAlarmRecordService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Leong
 * @date 2022/9/19 16:23
 */
@Service
public class MhAlarmRecordServiceImpl extends ServiceImpl<MhAlarmRecordMapper, MhAlarmRecord> implements MhAlarmRecordService {

    @Override
    public MhAlarmRecord findValidRecord(Long monitoringPointId, Integer state) {
        return baseMapper.findValidRecord(monitoringPointId,state);
    }

    @Override
    public List<MhAlarmRecord> findValidNoCode(Integer exceedTimes) {
        return baseMapper.findValidNoCode(exceedTimes);
    }

    @Override
    public List<MhAlarmRecord> findValidRecords(List<Long> pointIds, Integer state) {
        return baseMapper.findValidRecords(pointIds,state);
    }
}
